package com.shujia;

import redis.clients.jedis.*;
import redis.clients.jedis.commands.CommandCommands;
import redis.clients.jedis.params.ScanParams;
import redis.clients.jedis.resps.ScanResult;

import java.util.HashSet;
import java.util.List;
import java.util.Map;

public class JedisTest {
    public static void main(String[] args) {
        HashSet<HostAndPort> hostAndPorts = new HashSet<>();
        String host = "192.168.205.129";
        for (int i=0;i<7;i++){
            hostAndPorts.add(new HostAndPort(host,7000+i));
        }
        JedisCluster jedisCluster = new JedisCluster(hostAndPorts);

        jedisCluster.close();

    }
}
